import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

export default new VueRouter({
    mode:"hash",
    routes:[
        {
            path:"/shouye",
            name:"shouye",
            component:()=>import("../views/ShouYe.vue")
            // children:{
            //     {
            //         path:"/list",
            //         name:"list",
            //         component:()=>import("../views/shouye/List.vue")
            //     },
            // }
        },
        {
            path:"/shequ",
            name:"shequ",
            component:()=>import("../views/SheQu.vue")
        },
        {
            path:'/',
            redirect:'/shouye'
        }
    ]
})